package com.web.ThirdService.mappers;

import org.apache.ibatis.annotations.Mapper;
import entity.Item;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface usemapper {
    Item getItemById(@Param("itemid") Integer id);
    void subtractStock(@Param("itemid") Integer id, @Param("num") Integer num);
    void fallbackStock(@Param("itemid") Integer id, @Param("num") Integer num);
}
